-AC_INIT(gnome-shell, 0.1)
+AC_INIT(gnome-shell, 2.27.0)
AC_CONFIG_AUX_DIR(config)
+desktopdir=$(datadir)/applications
+desktop_DATA = gnome-shell.desktop
+
+# We substitute in bindir so it works as an autostart
+# file when built in a non-system prefix
+gnome-shell.desktop.in: gnome-shell.desktop.in.in
+ $(AM_V_GEN) sed -e "s|@bindir[@]|$(bindir)|" \
+ -e "s|@VERSION[@]|$(VERSION)|" \
+ $< > $@ || rm $@
+
+# Placeholder until we add intltool
+gnome-shell.desktop: gnome-shell.desktop.in
+ $(AM_V_GEN) sed s/^_// < $< > $@ || rm $@
+
imagedir = $(pkgdatadir)/images
dist_image_DATA = \
install-data-local:
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$(schema_DATA)
-EXTRA_DIST = \
+EXTRA_DIST = \
+ gnome-shell.desktop.in.in \
+ gnome-shell.desktop.in \
$(schema_DATA)
+
+CLEANFILES = \
+ $(desktop_DATA)
+
--- /dev/null
+[Desktop Entry]
+Type=Application
+_Name=GNOME Shell
+_Comment=Window management and application launching
+Exec=@bindir@/gnome-shell
+X-GNOME-Bugzilla-Bugzilla=GNOME
+X-GNOME-Bugzilla-Product=gnome-shell
+X-GNOME-Bugzilla-Component=general
+X-GNOME-Bugzilla-Version=@VERSION@
+Categories=GNOME;GTK;Utility;Core;
+OnlyShowIn=GNOME;
+NoDisplay=true
+X-GNOME-Autostart-Phase=WindowManager
+X-GNOME-Provides=panel;windowmanager;
+X-GNOME-Autostart-Notify=true